@extends('hrs.layouts.app')  
@section('css')
        <!-- Custombox css -->
        <link href="{{asset('hrs/plugins/select2/css/select2.min.css')}}" rel="stylesheet">
  
@endsection         
@section('content')

            <div class="container">

                <!-- Page-Title -->
                

                <div class="row">
                    <div class="col-sm-12">


                        <form method="post" action="{{url('/users')}}">
                            {{ csrf_field()}}
                            <div class="row">
                                <div class="col-lg-12">
                                    <div class="card-box">
                                        <h5 class="text-muted text-uppercase m-t-0 m-b-20"><b>修改用户</b></h5>

                                        <div class="form-group m-b-20 col-md-6">
                                            <label>用户名<span class="text-danger">*</span></label>
                                            <input type="text" class="form-control" placeholder="" name="username" value="{{$data->username}}">
                                        </div>
                                       

                                        <div class="form-group m-b-20 col-md-6">
                                            <label>密码 <span class="text-danger">*</span></label>
                                            <input type="password" class="form-control" placeholder="不改勿填"  name="password" >

                                        </div>

                                        <div class="form-group m-b-20 col-md-6">
                                            <label>密码确认 <span class="text-danger">*</span></label>
                                            <input type="text" class="form-control"  name="password2" >

                                        </div>

                                        <div class="form-group m-b-20 col-md-6">
                                            <label>真实姓名<span class="text-danger">*</span></label>
                                            <input type="text" class="form-control"  name="truename" value="{{$data->truename}}">
                                        </div>

                                      

                                        

                                       <!--  <div class="form-group col-md-12">
                                            <label>角色<span class="text-danger">*</span></label>
                                            <select name="role_id" class="form-control select2">
                                                <option>请选择</option>
                                                @foreach($roles as $r)
                                                <option value="{{$r->id}}">{{$r->name}}</option>
                                                @endforeach
                                            </select>
                                        </div> -->

                                      

                                 
                                    <div class="form-group m-b-20">
                                         
                                         <button type="
                                         submit" class="btn w-sm btn-default waves-effect waves-light">修改</button>
                                         
                                    </div>
                              
                                        
                                    </div>
                                    
                                </div>
                            </div>


                        
                        </form>
                    </div>
                </div>

               

            </div> <!-- end container -->
@endsection        

        
@section('js')
 
       
        <script src="{{asset('hrs/plugins/select2/js/select2.min.js')}}"></script>
@endsection

